package com.xm.concurrent.base.instance;

import java.util.concurrent.CountDownLatch;

/**
 * @author xiaoming
 * @date 2021-05-28 6:54
 */
public class ConnectionPoolTest {
    static ConnectionPool pool = new ConnectionPool(10);
    /**
     * 保证所有的ConnectionPool 能够同时开始
     */
    static CountDownLatch start = new CountDownLatch(1);
    /**
     * main 线程将会等待所有 ConnectionRunner 结束后才能继续执行
     */
    static CountDownLatch end;

    public static void main(String[] args) {
        // 线程数量, 可以修改线程属性进行观察
        int threadCount = 10;
    }



}
